//
//  ResizeView.h
//  116114
//
//  Created by shenhaihua on 13-11-13.
//  Copyright (c) 2013年 Raiyi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TPKeyboardAvoidingScrollView.h"
@class ResizeView;

@interface ResizeViewInfo : NSObject
@property (nonatomic,strong) UIView *view;
@property (nonatomic) float height;
@property (nonatomic,strong,readonly) NSArray *subviews;
@property (nonatomic) BOOL hidden;

- (void)addSubview:(UIView *)view;

- (void)addSubview:(UIView *)view viewKey:(NSString *)viewKey;

- (UIView *)viewWithKey:(NSString *)viewKey;
- (void)cellOnTableView:(ResizeView *)tableView didScrollOnView:(UIView *)view;

@end


@interface ResizeView : TPKeyboardAvoidingScrollView
@property (nonatomic) CGFloat minContentHeight;
@property (nonatomic) CGFloat yOffset;

- (NSArray *)resizeSubviewInfos;

- (void)addResizeSubview:(ResizeViewInfo *)resizeInfo;

- (void)insertResizeSubview:(ResizeViewInfo *)resizeInfo atIndex:(NSInteger)index;

- (void)reloadSubviews;

- (void)removeAllResizeViews;

@end